home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 25 / CU Amiga Magazine's Super CD-ROM 25 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-08].iso / CUCD / Programming / BlitzList / BlitzListFiles / blitzbotz.lha / BlitzBotz.readme < prev   
Encoding:
Text File  |  1998-05-11  |  1.9 KB  |  48 lines

  1.  
  2. This is just a simple idea...and only really meant for a laugh...hope
  3. you have fun with it though....
  4.  
  5. Simply write your bot in a statement using the normal blitz commands, and
  6. the following blitzbotz commands:
  7.  
  8. BOT_FIRE{} - Attempts to fire your bot's gun...returns true or false
  9.  
  10. BOT_FORWARD{} - Attempts to move your bot foward in the playing area, 
  11.                 returns true or false
  12.  
  13. BOT_TURNCW{} - Turns your bot clockwise and returns the value of the grid
  14.                square now in front of you 
  15.  
  16. BOT_TURNAC{} - Turns your bot anti clockwise, and returns the value of the
  17.                grid square now if front of you
  18.  
  19. BOT_LOOK{ahead} - Returns the value of the grid 'ahead' sqaures in front
  20.                   of you
  21.  
  22. These are all functions.
  23.  
  24. You can't have any SHARED variables in your BlitzBotz statement, you can
  25. make yourself some memory (see the Gophor bot) by making some dc statements
  26. just before the end statement and skipping them. This allows you to have
  27. areas of memory that are permanent. Your allowed to use any of the constants
  28. (#) that the blitzbotz program uses (ie, so you know how big the grid is).
  29.  
  30. The idea of the game is to hit the other bots the most times. You will have
  31. to set the number of bots you wish to run in the tournament (#BOT_MAX) and
  32. then find the select/case statements to put your bot in (ie, a case with
  33. your bot_types number to call your bot's code). Then just compile the
  34. source and you should see your bot running round the grid. I would advise
  35. that you keep runtime errors on, as there is currently no way of breaking
  36. out of the cycles loop!
  37.  
  38.  
  39. Have fun,
  40.  
  41. Dave
  42.  
  43. P.s. You'll find that usually Gopher wins out of my three bots, but the
  44. score output doesn't take in to account it's only hitting one bot. This
  45. means that other ones may hit all the robots a few times, and have less
  46. hits, but that doesn't mean this bot is better....is just narrower, as
  47. it only concentrates on one bot when it finds one!
  48.